-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(e2e): add storage mode e2e tests #5926
Conversation
Closing and reopening to get CI to run |
snyk pls 🥺 |
@@ -166,15 +166,15 @@ export const ALL_FIELDS: E2eFieldMetadata[] = [ | |||
{ | |||
title: 'Birthday', | |||
fieldType: BasicField.Date, | |||
val: format(new Date(), DATE_INPUT_FORMAT), | |||
val: format(new Date(952970366), DATE_INPUT_FORMAT), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this date value 952970366
special?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok no but on a serious note, I couldn't leave it as the current date because our Storage mode's individual response page also displays the date of submission which would also be the current date. So the expect()
for finding the response to this question would certainly always succeed, regardless of whether the response to the question was shown.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Problem
We don't have e2e tests for storage mode yet! This PR adds them and achieves parity with Angular.
Closes #5113
Solution
Shard out some of the test case data that is shared between the two modes.
Add support for storage mode in all relevant handlers. Specifically, changes needed to be made to createForm and verifySubmission to accommodate storage mode individual response page and CSV modes which each displayed data differently (help...). Some utils had to be modified as well in the process.